home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1635 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  703 b   |  26 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 2)
  5.       {
  6.          _root.next_dis1 = 2;
  7.          _root.next_txt1 = "The ladder leads to the top of the school.";
  8.       }
  9.       if(_root.micon._currentframe == 1 && _root.range == true)
  10.       {
  11.          if(_root.even16 > 1)
  12.          {
  13.             _root.nogo.exit1._x = _root.lvl.hewitt._x;
  14.             _root.nogo.exit1._y = _root.lvl.hewitt._y;
  15.          }
  16.          else
  17.          {
  18.             _root.txt_number = 1;
  19.             _root.next_dis1 = 3;
  20.             _root.di1 = 137;
  21.             _root.next_txt1 = "Hey get back! You\'re trespassing on my property.";
  22.          }
  23.       }
  24.    }
  25. }
  26.